<template>
  <h2>我是About的内容</h2>
</template>

<script>
export default {
  name: "AboutVue",
  beforeDestroy() {
    //console.log('About will be die')
  },
  //通过路由规则，进入该组件时调用
  beforeRouteEnter(to, from, next) {
    if (sessionStorage.getItem("school") === "peiliyou") {
      next();
    }
  },
  // 通过路由规则，离开该组件时调用
  beforeRouteLeave(to, from, next) {
    next();
  },
};
</script>